program B2;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  n, i, sum : integer;
  fin : textFile;
  mass : array of integer;

begin
  sum:=0;
  assignFile(fin, 'input.txt');
  reset(fin);
  readln(fin, n);
  setlength(mass, n);
  for i:=1 to n do
   read(fin, mass[i]);
   for i:=1 to n do
    begin
    sum := sum + mass[i];
    end;
   writeln(sum);
  closeFile(fin);
   readln;


end.
 